-
Notifications
You must be signed in to change notification settings - Fork 17
Issues-79: fix each partial invoke #80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
In js array may be object with key as index some another fix: - remove generic in string method. replace with toString - applyInner check not null before use in matcher - check ? when arg type is operator by toString.equals (? is char in value) - 2 test for each partial expression
| lhs = new HashMap(); | ||
| for (int i = 0; i < tempLhs.size(); i++) { | ||
| ((HashMap) lhs).put(i, tempLhs.get(i)); | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe better:
var lhsNewMap = new HashMap();
var lhsOldList = (List)lhs;
for (int i = 0; i < lhsOldList.size(); i++) {
lhsNewMap.put(i, tempLhs.get(i));
}
lhs = lhsNewMap;
uw4
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks + good catch!
We're reviewing this behavior of $each with list as input -
we want to clarify this with the original Jsonata maintainers, might be as well be a glitch in the original impl
|
find some another bug caused by this fix. @uw4 @aeberhart any updates about for this bug? memory pill for me: json: and expression not fork after this fix and not coverage by tests |
In js array may be object with key as index
some another fix: